-- =====================================================================
-- {{{ s_rules
-- =====================================================================
awful.rules.rules = {
    {rule = { },
         properties = { border_width = beautiful.border_width,
                        border_color = beautiful.border_normal,
                        focus = true,
                        keys = clientkeys,
                        buttons = clientbuttons 
                      },
    },
    {rule = {class = "Firefox"},
         properties = {tag = tags_named[1]['www'],},
    },
    {rule = {class = "Thunderbird"},
         properties = {tag = tags_named[1]['www'],},
    },
     {rule = {class = "Qbittorrent"},
         properties = {tag = tags_named[1]['www'],},
    },
    {rule = {class = "Shredder"},
         properties = {tag = tags_named[1]['www'],},
    },
    {rule = {class = "Eclipse"},
         properties = {tag = tags_named[1]['work'], switchtotag = true},
    },
    {rule = {name = "NetBeans"},
         properties = {tag = tags_named[1]['work'], switchtotag = true},
    },
     {rule = {class = "Gimp"},
         properties = {tag = tags_named[1]['extra'], switchtotag = true},
    },
    {rule = {role = "gimp-image-window"},
         properties = {tag = tags_named[1]['extra'], maximized_vertical = true},
         callback = awful.placement.center_horizontal
    },
    {rule = { class = "Apvlv"},
         properties = {maximized_vertical = true, maximized_horizontal = true},
         callback = awful.placement.center_horizontal
    },
     {rule = { name = "irssi" },
         properties = {tag = tags_named[1]['www'],},
    },
    {rule = { name = "rdesktop" },
         properties = {tag = tags_named[1]['rdesk'], switchtotag = true},
    },
    {rule = { class = "Vncviewer" },
         properties = {tag = tags_named[1]['rdesk'], switchtotag = true},
    },
    {rule = { name = "feh" },
         properties = {floating = true},
	     callback = awful.placement.centered,
    },
    {rule = { name = "term" },
         properties = {tag = tags_named[1]['term']},
    },
    {rule = { class = "MPlayer" },
         properties = {floating = true},
    },
    {rule = { class = "OpenOffice.org 3.2" },
         properties = {tag = tags_named[1]['work']},
    },
    {rule = { class = "Pidgin" },
         properties = {tag = tags_named[1]['pidgin']},
    },
    {rule = { class = "Skype" },
         properties = {tag = tags_named[1]['skype']},
    },
    {rule = { name = "urxvt_zshrun" },
         properties = {floating = true},
    },
    {rule = { class = "Wine" },
         properties = {tag = tags_named[1]['wine']},
	     callback = awful.placement.centered,
    },
    {rule = { class = "VirtualBox" },
         properties = {tag = tags_named[1]['vbox']},
    },
    {rule = { name = "Second Life " },
         properties = {tag = tags_named[1]['extra']},
    },
    {rule = { class = "dosbox" },
         properties = {tag = tags_named[1]['extra']},
    },
     {rule = { class = "Ario" },
         properties = {tag = tags_named[1]['extra']},
    },
    {rule = { class = "Mumble" },
         properties = {tag = tags_named[1]['www']},
    },
     {rule = { },
        callback = awful.client.setslave 
    },
--    {rule = { },
--         callback = awful.placement.centered 
--    },
 ---  callback = awful.client.setslave 

}

-- }}}
